import service from "./config";

//登录URL
const LoginURL = '/user/login';
//用户信息URL
const UserInfoURL = '/user/info';

 
export function login({username,password}){
    return service.post(LoginURL,{userName:username,password});
}

export const getUserInfo = ()=> service.get(UserInfoURL);